<head>
  <meta name="layout" content="main"/>
</head>

<body>

<div class="body">
  <h1>User Profile</h1>
  <g:if test="${flash.message}">
    <div class="message">${flash.message}</div>
  </g:if>
  <div class="dialog">
    <table>
      <tbody>

      <tr class="prop">
        <td valign="top" class="name">Login Name:</td>
        <td valign="top" class="value">${account.username?.encodeAsHTML()}</td>
      </tr>

      <tr class="prop">
        <td valign="top" class="name">Full Name:</td>
        <td valign="top" class="value">${account.userRealName?.encodeAsHTML()}</td>
      </tr>

      <tr class="prop">
        <td valign="top" class="name">Enabled:</td>
        <td valign="top" class="value">${account.enabled}</td>
      </tr>

      <tr class="prop">
        <td valign="top" class="name">Roles:</td>
        <td valign="top" class="value">
          <ul>
            <g:each var='authority' in="${account.authorities}">
              <li>${authority.authority}</li>
            </g:each>
          </ul>
        </td>
      </tr>

      </tbody>
    </table>
  </div>

  <div class="buttons">
    <g:form>
      <input type="hidden" name="id" value="${account.id}"/>
      <span class="button"><g:actionSubmit class='edit' value="Edit"/></span>
    </g:form>
  </div>

</div>
</body>
